package com.surelution.projects.echo.domain

import javax.persistence.Transient;

class Comment {

    static constraints = {
    }
	
	static mapping = {
		content type:'text'
	}
	
	static belongsTo = Blog

	def beforeInsert = {
		createTime = new Date()
	}
	
	
	
	String title
	String content
	Blog blog
	com.surelution.projects.domain.User user
	Date createTime
	
	@Override
	public String toString() {
		return blog.title
	}
}
